package Course14;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class StreamTest2 {
    public static void main(String[] args)throws IOException{
        BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(System.in));
        String string=null;
        System.out.println("输入字符串");
        System.out.println("输入'结束'退出程序");
        do{
            string=bufferedReader.readLine();
            System.out.println(string);
        }while(!string.equals("结束"));

    }
}
